Simplify Path

[Problem Link] Tokenize the string with ‘/’ as a delimiter. Create a graph where nodes have pointers to parent nodes. Keep moving up(& down) the graph depending on the directory. If you see a directory, create (or move) to the node (depending on if it exists or not)! Make sure you don’t move above the … Continue reading Simplify Path